package de.tabuma.soap.entity.xsd;

import java.util.*;
import java.io.*;
import javax.jdo.annotations.*;

import de.tabuma.soap.annotation.*;

/**
 * This class represents an element of an wsdl document called &quot;simpletype&quot;.
 * @author $Author: alefen $
 * @version $Revision: 1.1 $
 * @since $Date: 2009/12/30 02:57:12 $
 */
@PersistenceCapable(identityType = IdentityType.APPLICATION)
@SoapClassDefinition(@SoapClassMapping(mappingString="simpletype",mappingType=SoapClassMapping.MappingType.XSD))
public class XsSimpleType implements Serializable {

    public XsSimpleType() {
        this.xsAnnotationId = new Long(0);
        this.xsRestrictionOrXsListOrXsUnion = new ArrayList<Long>();
    }

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long id1;
    public Long getId1() {
        return id1;
    }

    @Persistent
    @SoapAttribute
    protected String name;
    public String getName() {
        return name;
    }
    public void setName(String value) {
        this.name = value;
    }

    @Persistent
    @SoapAttribute(fieldName="final")
    protected String _final;
    public String getFinal() {
        return _final;
    }
    public void setFinal(String value) {
        this._final = value;
    }

    @Persistent
    @SoapAttribute
    protected String id;
    public String getId() {
        return id;
    }
    public void setId(String value) {
        this.id = value;
    }

    @Persistent
    @SoapFieldDefinition(@SoapFieldClass(classDefinition=XsAnnotation.class))
    protected Long xsAnnotationId;
    public Long getXsAnnotationId() {
        return xsAnnotationId;
    }
    public void setXsAnnotationId(Long xsAnnotationId) {
        this.xsAnnotationId = xsAnnotationId;
    }

    @Persistent
    @SoapFieldDefinition(
        {
            @SoapFieldClass(classDefinition=XsRestriction.class),
            @SoapFieldClass(classDefinition=XsList.class),
            @SoapFieldClass(classDefinition=XsUnion.class)
        }
    )
    protected List<Long> xsRestrictionOrXsListOrXsUnion;
    public List<Long> getXsRestrictionOrXsListOrXsUnion() {
        return this.xsRestrictionOrXsListOrXsUnion;
    }
    public void setXsRestrictionOrXsListOrXsUnion(List<Long> xsRestrictionOrXsListOrXsUnion) {
        this.xsRestrictionOrXsListOrXsUnion = xsRestrictionOrXsListOrXsUnion;
    }
}
